﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HamcoWcs.Models.Logss
{
    public class SrmSetpLog
    {
        public static Dictionary<string, List<SrmSetpLog>> SrmSetpLogs { get; set; } = new Dictionary<string, List<SrmSetpLog>>() {
            {"CJSTW100-C1",new List<SrmSetpLog>() },
            {"CJSTW100-C2",new List<SrmSetpLog>() },
            {"CJSTW200-C1",new List<SrmSetpLog>() },
            {"CJSTW200-C2",new List<SrmSetpLog>() },
        };


        public double X1 { get; set; }
        public double X2 { get; set; }
        public double X3 { get; set; }
        public double X4 { get; set; }
        public double X5 { get; set; }
        public double X6 { get; set; }
        public double X7 { get; set; }
        public double X8 { get; set; }
        public double X9 { get; set; }


        public void Update(string key, byte[] content)
        {
            if (SrmSetpLogs.TryGetValue(key, out var logs))
            {
                if (logs.Count == 0)
                {
                    logs.AddRange(new SrmSetpLog[10]);
                }

                for (int i = 0; i < logs.Count; i++)
                {
                    var log = logs[i];
                    


                }



            }
        }
    }
}
